
/**
  ******************************************************************************
  * @file    xxx.c 
  * @author  SD Electronics xxx
  * @version V1.0
  * @date    xx-xx-xx
  * @brief   xxxxxxxxxxxxxxxxxx.
  ******************************************************************************
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef _SD_MATH_H
#define _SD_MATH_H


/* Includes ------------------------------------------------------------------*/
#include "stdint.h"
#include "string.h"
#include "stdbool.h"

/** @defgroup FunctionDeclaration
  * @{
  */ 
uint8_t char_for_nibble(uint8_t nibble);
uint8_t *hex_to_str(uint8_t* addr, uint8_t len);
int8_t char2hex(uint8_t s);
int8_t str_to_addr(uint8_t* dest, uint8_t *p);
int cmdGetSubParameter(uint8_t *s, uint16_t len, uint16_t offset, uint8_t *retparam);
void cmdGeCommaParameter(uint8_t *s, uint16_t len, uint8_t *retparam0, uint32_t *retparam0LEN, uint8_t *retparam1, uint32_t *retparam1LEN);
uint32_t str2hex_value(uint8_t *s, uint32_t len);
void str2hexArr(uint8_t *s, uint32_t len, uint8_t *desArry);
int MyAtoi(const char *str);
/**
  * @}
  */ 

#endif
/******************* (C) COPYRIGHT 2011 ShenZhenShiding electronics **************************/
